package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by pengwan on 2017/8/2.
 */
@Entity
@Table(name = "phone_number")
public class PhoneNumber {
    @Id
    @Column(name = "number")
    private String number;
    @Column(name = "phone_type")
    private EnumPhoneType phoneType;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public EnumPhoneType getPhoneType() {
        return phoneType;
    }

    public void setPhoneType(EnumPhoneType phoneType) {
        this.phoneType = phoneType;
    }
}
